﻿using System;
using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
using OfficeOpenXml.Table;

namespace NP.BPMReportPlatform.GC.Dto
{
    [ExcelExporter(Name = "报表数据", TableStyle = TableStyles.Light10, AutoFitAllColumn = true)]
    public class GetYTBOrderOutput
    {
        /// <summary>
        /// 发起人名称
        /// </summary>
        [ExporterHeader(DisplayName = "申请人")]
        public string UserName { get; set; }

        /// <summary>
        /// 流程ID
        /// </summary>
        [ExporterHeader(DisplayName = "单据号")]
        public string InstanceNumber { get; set; }

        /// <summary>
        /// 单据状态
        /// </summary>        
        [ExporterHeader(DisplayName = "单据状态")]
        public string OrderStatus { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [ExporterHeader(DisplayName = "申请时间")]
        public string CreateTime { get; set; }


        /// <summary>
        /// 商机号objid
        /// </summary>
        [ExporterHeader(DisplayName = "商机号")]
        public string ProjectCode { get; set; }

        /// <summary>
        /// 项目名称(商机号)
        /// </summary>
        [ExporterHeader(DisplayName = "项目名称")]
        public string ProjectName { get; set; }

        /// <summary>
        /// 销售大区
        /// </summary>
        [ExporterHeader(DisplayName = "销售大区")]
        public string Salearea { get; set; }

        /// <summary>
        /// 销售员名称
        /// </summary>
        [ExporterHeader(DisplayName = "销售员名称")]
        public string Salername { get; set; }

        /// <summary>
        /// 客户编码
        /// </summary>
        [ExporterHeader(DisplayName = "客户编码")]
        public string Customercode { get; set; }

        /// <summary>
        /// 客户名称
        /// </summary>
        [ExporterHeader(DisplayName = "客户名称")]
        public string Customername { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        [ExporterHeader(DisplayName = "订单号")]
        public string Ordernumber { get; set; }

        /// <summary>
        /// 生产工厂
        /// </summary>

        [ExporterHeader(DisplayName = "生产工厂")]
        public string Factory { get; set; }

        /// <summary>
        /// 生产工厂名称
        /// </summary>
        [ExporterHeader(DisplayName = "生产工厂名称")]
        public string Factoryname { get; set; }

        /*/// <summary>
        /// 订单取消原因分类
        /// </summary>
        [ExporterHeader(DisplayName = "订单取消原因分类")]
        public string Ddqxreasontype { get; set; }*/

        /// <summary>
        /// 订单取消原因分类名称
        /// </summary>
        [ExporterHeader(DisplayName = "订单取消原因分类名称")]
        public string Ddqxreasontypename { get; set; }

        /// <summary>
        /// 订单取消原因
        /// </summary>
        [ExporterHeader(DisplayName = "订单取消原因")]
        public string Ddcancelreason { get; set; }

        /// <summary>
        /// 申请取消数量
        /// </summary>
        [ExporterHeader(DisplayName = "申请取消数量")]
        public string Sqqxtotal { get; set; }

        /// <summary>
        /// 初步确认处理方案
        /// </summary>
        [ExporterHeader(DisplayName = "初步确认处理方案")]
        public string Cbqrhandleway { get; set; }

        /// <summary>
        /// 是否产生额外费用
        /// </summary>
        [ExporterHeader(DisplayName = "是否产生额外费用")]
        public string Sfcsextraprice { get; set; }

        /// <summary>
        /// 费用承担方
        /// </summary>
        [ExporterHeader(DisplayName = "费用承担方")]
        public string Costbearingparty { get; set; }

        /// <summary>
        /// 成本中心
        /// </summary>
        [ExporterHeader(DisplayName = "成本中心")]
        public string Costcenter { get; set; }

        /// <summary>
        /// 结案反馈
        /// </summary>
        [ExporterHeader(DisplayName = "结案反馈")]
        public string Closingfeedback { get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        [ExporterHeader(DisplayName = "金额")]
        public string Price { get; set; }

        /// <summary>
        /// URL 
        /// </summary>
        [IEIgnore(IsExportIgnore = true)]
        public string Url { get; set; }
    }
}